package java_basics;

import java.util.Scanner;

/**
 * @author 孤雪唯方
 * @date 2024/07/16
 * @description 实现四舍五入
 */
public class RoundItUp {


    /**
     * @param num
     * @description 实现四舍五入
     */
    public static void roundItUp(double num) {
        int i = (int) Math.round(num);
        System.out.println(i);
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double d = scanner.nextDouble();
        System.out.println(d);
        roundItUp(d);
    }
}
